Matthias Clasen [Tue, 2 Jan 2018 22:00:12 +0000 (17:00 -0500)]
menushell: Stop using ::grab-broken
The event-specific signals are going away. Just use ::event here.
Matthias Clasen [Tue, 16 Jan 2018 03:54:03 +0000 (22:54 -0500)]
notebook: some cleanup
Matthias Clasen [Tue, 2 Jan 2018 21:29:38 +0000 (16:29 -0500)]
notebook: Use a motion event controller
This lets us avoid the ::motion-notify-event handler.
Matthias Clasen [Tue, 2 Jan 2018 20:45:52 +0000 (15:45 -0500)]
textview: Use a motion event controller
This lets us replace the ::motion-notify-event handler.
Matthias Clasen [Tue, 2 Jan 2018 18:37:02 +0000 (13:37 -0500)]
Drop ::enter/leave-notify-event
These signals are no longer used in GTK+ and have a (not quite
perfect yet) replacement with GtkEventControllerMotion.
If you need to catch the raw events, the generic ::event
signal still works.
Matthias Clasen [Tue, 2 Jan 2018 18:22:36 +0000 (13:22 -0500)]
menu: Use a motion event controller
This lets us replace the ::enter/leave-notify-event handlers.
Not that there is a FIXME here - we currently can't get the
crossing mode from the event controller, so we have to fall
back to gtk_get_current_event().
Matthias Clasen [Tue, 2 Jan 2018 16:07:56 +0000 (11:07 -0500)]
menuitem: Use a motion event controller
This lets us replace the ::enter/leave-notify-event handlers.
Not that there is a FIXME here - we currently can't get the
crossing mode from the event controller, so we have to fall
back to gtk_get_current_event().
Matthias Clasen [Tue, 2 Jan 2018 04:48:32 +0000 (23:48 -0500)]
iconview: Use a motion event controller
This can replace ::motion-notify-event and ::leave-notify-event.
Matthias Clasen [Tue, 2 Jan 2018 04:25:10 +0000 (23:25 -0500)]
scrolled window: Use a motion event controller
This lets use replace one of the last uses of ::leave-notify-event.
Matthias Clasen [Tue, 2 Jan 2018 04:08:46 +0000 (23:08 -0500)]
entry completion: Drop initial selection avoidance
This is a minor thing, and it is hard to recreate
with event controllers, so drop it for now.
Matthias Clasen [Tue, 2 Jan 2018 01:24:28 +0000 (20:24 -0500)]
treeview: Use a motion event controller
This replaces handlers for ::enter/leave/motion-notify-event.
Matthias Clasen [Tue, 2 Jan 2018 01:07:24 +0000 (20:07 -0500)]
Add x/y to GtkEventControllerMotion::enter
We have this information available in enter events,
and having it in the controller signal as well makes
porting easier.
Update existing users.
Matthias Clasen [Mon, 1 Jan 2018 23:25:35 +0000 (18:25 -0500)]
Drop ::configure-event
This signal is unused in GTK+ and configure events are handled
internally by GtkWindow.
If you need to catch configure events, the generic ::event
signal still works.
Matthias Clasen [Mon, 1 Jan 2018 23:18:37 +0000 (18:18 -0500)]
window: Stop using ::configure-event
We already have a generic ::event handler that we
can just press into service for this.
Matthias Clasen [Mon, 1 Jan 2018 23:18:11 +0000 (18:18 -0500)]
testgtk: Stop using ::configure-event
Matthias Clasen [Mon, 1 Jan 2018 22:50:15 +0000 (17:50 -0500)]
xim: Stop using ::configure-event
The generic ::event will do.
Matthias Clasen [Mon, 1 Jan 2018 22:47:34 +0000 (17:47 -0500)]
tests: Stop using ::configure-event
The generic ::event will do.
Matthias Clasen [Mon, 1 Jan 2018 22:30:03 +0000 (17:30 -0500)]
Drop ::touch-event
This signal is not used in GTK+, and has a suitable
replacement with GtkGesture and its subclasses.
If you need to catch the raw touch events, the generic ::event
signal still works, too.
Matthias Clasen [Mon, 1 Jan 2018 22:24:16 +0000 (17:24 -0500)]
Drop ::scroll-event
This signal is not used in GTK+, and has a suitable
replacement with GtkEventControllerScroll.
If you need to catch these events, the generic ::event
signal still works, too.
Matthias Clasen [Mon, 1 Jan 2018 22:18:30 +0000 (17:18 -0500)]
Drop ::proximity-in-event and ::proximity-out-event
These are unused in GTK+, and are not very common.
If you need to catch these events, the generic ::event
signal still works.
Matthias Clasen [Mon, 1 Jan 2018 22:07:32 +0000 (17:07 -0500)]
Drop ::map-event and ::unmap-event
These are unused in GTK+, and are not very common.
If you need to catch these events, the generic ::event
signal still works.
Matthias Clasen [Mon, 1 Jan 2018 22:01:57 +0000 (17:01 -0500)]
window: Stop using ::map-event
Use ::event here, since we want to drop the event-specific
signals, and we already have a handler for the generic signal.
Matthias Clasen [Mon, 1 Jan 2018 21:57:55 +0000 (16:57 -0500)]
widget: Stop using ::map-event
Use ::event here, since we want to drop the event-specific
signals.
Matthias Clasen [Mon, 1 Jan 2018 21:51:37 +0000 (16:51 -0500)]
Drop GtkWidget::destroy-event
This signal is unused in GTK+, and is documented as
'hard to ever get', so there's no good reason for
keeping it.
Matthias Clasen [Mon, 1 Jan 2018 20:46:15 +0000 (15:46 -0500)]
Drop GtkWidget::delete-event
Nobody is using this signal anymore, and ::delete is there
for the few places where it is needed.
Matthias Clasen [Mon, 1 Jan 2018 20:27:16 +0000 (15:27 -0500)]
Replace all remaining uses of delete-event
Matthias Clasen [Mon, 1 Jan 2018 20:24:16 +0000 (15:24 -0500)]
Replace GtkWidget::delete-event by GtkWindow::close-request
The event is not useful at all, so we are better off
with a signal that doesn't have it, and it is only
relevant on toplevel windows, so we don't need it on
GtkWidget.
With this commit, delete events no longer go through the
::event, ::delete-event, ::event-after widget signals,
but just cause the ::close-request signal on GtkWindow to be
emitted.
Matthias Clasen [Mon, 1 Jan 2018 16:15:22 +0000 (11:15 -0500)]
testoverlay: Use an event controller
We can stop using ::enter-notify-event here, and use
our new motion event controller instead.
Matthias Clasen [Mon, 1 Jan 2018 16:08:44 +0000 (11:08 -0500)]
testgtk: Redo the event watcher case
Make this watch for emissions of ::event, since we
want to get rid of individual signals first.
Matthias Clasen [Mon, 1 Jan 2018 15:59:48 +0000 (10:59 -0500)]
testgtk: Use an event controller for 'testing scrolling'
The current code was not working with smooth scroll events,
for starters.
Matthias Clasen [Mon, 1 Jan 2018 15:25:57 +0000 (10:25 -0500)]
testinput: Drop some no-op signal handlers
These were not doing anything.
Matthias Clasen [Mon, 1 Jan 2018 14:04:56 +0000 (09:04 -0500)]
treeview: Don't handle ::delete-event
I don't think there is a way to get a delete event
on this popup - there's no window decorations, no close
button, etc. So no need to handle ::delete-event.
Matthias Clasen [Mon, 1 Jan 2018 05:49:38 +0000 (00:49 -0500)]
font chooser: Stop using ::scroll-event
We have an event controller for this purpose now.
Matthias Clasen [Mon, 1 Jan 2018 03:06:35 +0000 (22:06 -0500)]
treeview: Use a scroll event controller
This is the recommended way to deal with scroll events
now.
Matthias Clasen [Sun, 31 Dec 2017 19:19:34 +0000 (14:19 -0500)]
tests: Avoid a use of ::map-event
We can use the ::map signal here instead.
Matthias Clasen [Sun, 31 Dec 2017 19:13:26 +0000 (14:13 -0500)]
gtk-demo: Drop a use of ::event-after
It works just fine with ::event as well.
Matthias Clasen [Sun, 31 Dec 2017 17:49:53 +0000 (12:49 -0500)]
Drop gtk_true and gtk_false
These functions are entirely trivial, their documentation
is much longer than their implementation, and it contains
an example that is annotated as "don't do this"...
Matthias Clasen [Sun, 31 Dec 2017 18:03:31 +0000 (13:03 -0500)]
inspector: Stop using ::delete-event signal
We can just use GtkWindow::hide-on-close instead.
Matthias Clasen [Sun, 31 Dec 2017 17:57:39 +0000 (12:57 -0500)]
icon-browser: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-delete
Matthias Clasen [Sun, 31 Dec 2017 17:56:02 +0000 (12:56 -0500)]
widget-factory: Stop connecting to ::delete-event
We can use GtkWindow::hide-on-close instead
Matthias Clasen [Sun, 31 Dec 2017 17:54:42 +0000 (12:54 -0500)]
gtk-demo: Stop using ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 17:52:54 +0000 (12:52 -0500)]
tests: Stop using the delete-event signal
We can use ::destroy in most cases.
Matthias Clasen [Sun, 31 Dec 2017 17:17:53 +0000 (12:17 -0500)]
treeview: Stop using gtk_true
Matthias Clasen [Sun, 31 Dec 2017 17:17:08 +0000 (12:17 -0500)]
doc tools: Stop using gtk_true
Matthias Clasen [Sun, 31 Dec 2017 16:43:08 +0000 (11:43 -0500)]
dialog: Stop using the ::delete-event signal
We can achieve the desired result with a class handler
and the ::hide-on-close property.
Matthias Clasen [Sun, 31 Dec 2017 16:42:42 +0000 (11:42 -0500)]
file chooser native: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:41:59 +0000 (11:41 -0500)]
file chooser button: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:41:09 +0000 (11:41 -0500)]
applicationwindow: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:40:42 +0000 (11:40 -0500)]
about dialog: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:40:00 +0000 (11:40 -0500)]
color button: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 15:43:01 +0000 (10:43 -0500)]
font button: Use GtkWindow::hide-on-close
Instead of the ::delete-event signal.
Matthias Clasen [Sun, 31 Dec 2017 15:42:10 +0000 (10:42 -0500)]
window: Add a hide-on-close property
This lets us avoid ::delete-event signal handlers for just
this purpose.
Piotr Drąg [Mon, 15 Jan 2018 21:19:28 +0000 (22:19 +0100)]
Update Polish translation
Matthias Clasen [Mon, 15 Jan 2018 13:01:54 +0000 (08:01 -0500)]
inspector: Avoid a critical
I forgot to initialized the text field when I added
it back.
Matthias Clasen [Mon, 15 Jan 2018 13:01:01 +0000 (08:01 -0500)]
vulkan: use GDK_DISPLAY_NOTE
Where we have a display, we should use the per-display logging.
Timm Bäder [Mon, 15 Jan 2018 10:02:37 +0000 (11:02 +0100)]
vulkan: Fix build
This was changed in
e151058dffbfd3b43798c2e6813eae9b952ba2d1 but
GDK_NOTE only takes 2 arguments.
Timm Bäder [Mon, 15 Jan 2018 09:57:25 +0000 (10:57 +0100)]
tests: Update gl outset shadow tests
The results are slightly different for these now.
Timm Bäder [Mon, 15 Jan 2018 09:55:40 +0000 (10:55 +0100)]
gl renderer: Render unblurred outset shadows differently
We don't need to draw anything to a texure for those.
Timm Bäder [Mon, 15 Jan 2018 00:40:06 +0000 (01:40 +0100)]
gskcairoblur: Don't apply y_scale twice
A version of
29f36fed085d51bad16ec0e3f7ba5085bf9f82e8 but for the blur
we use in gsk.
Matthias Clasen [Sun, 14 Jan 2018 22:03:28 +0000 (17:03 -0500)]
Update docs for debug cleanup
Drop mention of GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE,
add docs for GSK_DEBUG and new debug keys that were added.
Matthias Clasen [Fri, 12 Jan 2018 04:55:27 +0000 (23:55 -0500)]
inspector: Some logging support
Add a way to toggle debug output on and off
from the inspector. For now, we don't add a
log viewer here, since that has the risk of
deadlock until we've the logging completely
separated by display, and also requires us
to install a log writer function, which
libraries are not supposed to do.
Matthias Clasen [Sun, 14 Jan 2018 21:07:12 +0000 (16:07 -0500)]
inspector: Turn off gsk debugging
We don't want debug spew from the renderer that
is used for the inspector window, so turn it off.
Matthias Clasen [Sun, 14 Jan 2018 21:06:25 +0000 (16:06 -0500)]
gsk: Add a setter for debug flags
We need to set the global flags, since these are picked
up initially by new renderers.
Matthias Clasen [Sun, 14 Jan 2018 20:11:33 +0000 (15:11 -0500)]
gsk: Reorganize env vars
Get rid of GSK_RENDERING_MODE and add the flags to GSK_DEBUG,
following the same pattern we use in gdk now.
Matthias Clasen [Sun, 14 Jan 2018 20:09:30 +0000 (15:09 -0500)]
gtk Use per-renderer flags for node names
We are moving to per-renderer flags, so lets check them here.
Matthias Clasen [Sun, 14 Jan 2018 14:52:52 +0000 (09:52 -0500)]
gsk: make logging per-renderer
Add a setter for per-renderer debug flags, and use
them where possible. Some places don't have easy access
to a renderer, so this is not complete.
Also, use g_message instead of g_print throughout.
Matthias Clasen [Sat, 13 Jan 2018 00:09:46 +0000 (19:09 -0500)]
gsk: Drop unused debug flags
We are not logging anything for transforms or rendernodes atm.
Matthias Clasen [Thu, 11 Jan 2018 19:17:01 +0000 (14:17 -0500)]
gsk: Clarify a debug message
We are printing a window type, not a display.
Matthias Clasen [Fri, 12 Jan 2018 12:40:38 +0000 (07:40 -0500)]
wayland: Use g_message for logging
g_printerr is not the best for this.
Matthias Clasen [Sat, 13 Jan 2018 01:38:26 +0000 (20:38 -0500)]
Drop the cairo-recording debug flag
It is not very useful. The cairo-image option on the
other hand is has been useful in tracking down problems
in the past, so we'll keep it.
Matthias Clasen [Sat, 13 Jan 2018 00:49:27 +0000 (19:49 -0500)]
Drop the gl-always debug option
This doesn't seem very useful.
Matthias Clasen [Fri, 12 Jan 2018 00:48:27 +0000 (19:48 -0500)]
Make gdk logging per-display
As far as possible, use per-display debug flags.
This will minimize the debug spew that we get from
the inspector if it is running on a separate display.
Matthias Clasen [Thu, 11 Jan 2018 13:53:57 +0000 (08:53 -0500)]
gdk: Reorganize env vars
Drop GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE.
Merge the useful bits into GDK_DEBUG.
Drop unused debug flags (CURSOR).
Matthias Clasen [Sun, 14 Jan 2018 14:55:32 +0000 (09:55 -0500)]
Make geometry logging per-display
Use the new macro to do this.
Matthias Clasen [Sun, 14 Jan 2018 14:53:48 +0000 (09:53 -0500)]
icon theme: Make logging per-display
As far as possible, for now. This needs some more
work to cover all locations.
Matthias Clasen [Sun, 14 Jan 2018 14:54:45 +0000 (09:54 -0500)]
gtk: add a per-display log macro
This makes the conversion easier.
Matthias Clasen [Fri, 12 Jan 2018 02:43:01 +0000 (21:43 -0500)]
Add a display property to keymaps
This is a general pattern we want to follow for all
objects in GDK. Also add a getter.
Piotr Drąg [Sun, 14 Jan 2018 19:53:04 +0000 (20:53 +0100)]
Update Polish translation
Daniel Boles [Sat, 13 Jan 2018 20:03:37 +0000 (20:03 +0000)]
GdkMonitor: Fix link to nonexistent Display method
There is no gdk_display_get_monitors(). Instead, we have to use
gdk_display_get_n_monitors() and gdk_display_get_monitor(int).
Daniel Boles [Fri, 12 Jan 2018 22:56:11 +0000 (22:56 +0000)]
HeaderBar: Explain use in conjunction w/ GtkWindow
After hinting how good GtkHeaderBar is for GtkWindow, let’s link to
the latter and indicate how users can make the two work together.
Daniel Boles [Fri, 12 Jan 2018 21:26:36 +0000 (21:26 +0000)]
Window: Mention GtkHeaderBar in set_titlebar() doc
This is the typical thing passed here and what most users want, so we
should mention it here, rather than requiring users to figure it out.
Daniel Boles [Fri, 12 Jan 2018 21:22:11 +0000 (21:22 +0000)]
Window: Clarify resize() doc about titlebar widget
Clarify the reference to HeaderBar, as it applies to any custom title
widget; HeaderBar is only the most common one used. Also, fix a typo.
Timm Bäder [Sat, 13 Jan 2018 09:38:13 +0000 (10:38 +0100)]
tooltip: Fix tooltip positions
Since gtk_widget_get_allocation doesn't return x/y values relative to
the GdkWindow anymore, we need to manually translate the widget
coordinates here.
Timm Bäder [Sat, 13 Jan 2018 08:28:18 +0000 (09:28 +0100)]
tooltip: Remove some unused members
Timm Bäder [Sat, 13 Jan 2018 08:26:13 +0000 (09:26 +0100)]
tooltip: Remove some unused includes
Timm Bäder [Sat, 13 Jan 2018 07:35:39 +0000 (08:35 +0100)]
tooltip: Remove custom picking code
Just use gtk_widget_pick here for now. This also makes tooltips of
widgets work which are not inside a container.
Timm Bäder [Sat, 13 Jan 2018 09:17:21 +0000 (10:17 +0100)]
window: Remove a resize grip mention from the docs
Timm Bäder [Sat, 13 Jan 2018 06:39:54 +0000 (07:39 +0100)]
adwaita: Regenerate proper CSS
Timm Bäder [Fri, 12 Jan 2018 21:31:11 +0000 (22:31 +0100)]
tooltip: Remove excessive padding
tooltips support padding now, just like everthing else.
Timm Bäder [Fri, 12 Jan 2018 21:22:51 +0000 (22:22 +0100)]
window: Fix tooltip allocation
Using get_preferred_size here does not work since it computes the
minimum height for the minimum width, but we want to know the minimum
height for the current width.
Timm Bäder [Fri, 12 Jan 2018 19:30:32 +0000 (20:30 +0100)]
tooltip: Fold a function into its only caller
Timm Bäder [Fri, 12 Jan 2018 15:05:45 +0000 (16:05 +0100)]
gdk: Remove unused GdkStatus enum
Timm Bäder [Thu, 11 Jan 2018 10:58:05 +0000 (11:58 +0100)]
main: Set event user data earlier
event_widget is not modified anymore after the assignment from
handle_pointing event and we need the event's user data set for the
_gtk_window_check_handle_wm_event call.
Matthias Clasen [Fri, 12 Jan 2018 02:45:32 +0000 (21:45 -0500)]
x11: Only set the keymap display once
Not necessary to do this more than once.
Matthias Clasen [Fri, 12 Jan 2018 02:44:49 +0000 (21:44 -0500)]
wayland: Set display on keymaps
This was forgotten so far: The display of keymaps
was NULL.
Matthias Clasen [Thu, 11 Jan 2018 00:06:45 +0000 (19:06 -0500)]
Split NEWS
Split the NEWS file at the major release boundaries.
Matthias Clasen [Wed, 10 Jan 2018 21:43:17 +0000 (16:43 -0500)]
docs: Mention textures in the GtkImage docs
This is now the preferred way to load images.
Timm Bäder [Wed, 10 Jan 2018 15:01:37 +0000 (16:01 +0100)]
scrolledwindow: Remove workarounds
Instead of making sure here that the scrollbars are the last children,
just add the bin child as first one and keep the scrollbars last.
Timm Bäder [Wed, 10 Jan 2018 13:41:29 +0000 (14:41 +0100)]
magnifier: gtk_snapshot_finish may return NULL
Matthias Clasen [Wed, 10 Jan 2018 12:35:46 +0000 (07:35 -0500)]
Quiet a compiler warning
Avoid this warning the other way, without bumping the libvulkan
dependency.